Type.registerNamespace('ScottCate');

//create object and constructor
ScottCate.StringBuilder = function(len) {
    ScottCate.StringBuilder.initializeBase(this, [len]);
}

//Methods
ScottCate.StringBuilder.prototype = {
    appendFormat: function(mask) {
        this.append(String.format.apply(null, arguments));
    },
    toString: function(delimeter) {
        return ScottCate.StringBuilder.callBaseMethod(this, "toString", [delimeter]);
    }
}

//register new object with framework
ScottCate.StringBuilder.registerClass('ScottCate.StringBuilder', Sys.StringBuilder);

function TestSB() {
    var sb = new ScottCate.StringBuilder();
    
    var mask = "{0} goes in front of {1}";
    
    sb.appendFormat(mask, "This", "that");
    
    alert(sb.toString(' - '));
}

